package cn.txy.system.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Menu{
    /**主键ID*/
    private Long   id;
    /**菜单名称*/
    private String name;
    /**菜单组件*/
    private String component;
    /**菜单地址*/
    private String url;
    /**菜单图标*/
    private String icon;
    /**菜单索引*/
    private Integer index;
    /**父级菜单ID*/
    private Long    parentId;

    private String pName;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Menu> children = new ArrayList<>();
}